package com.example.pet.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.pet.dao.FriendsDao;
import com.example.pet.entity.Collect;
import com.example.pet.entity.Friends;
import com.example.pet.entity.Photo;
import com.example.pet.service.FriendsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * ���ѱ�(Friends)表服务实现类
 *
 * @author makejava
 * @since 2023-05-13 18:35:13
 */
@Service
public class FriendsServiceImpl  implements FriendsService {
    @Resource
    private FriendsDao friendsDao;
    @Override
    public List<Friends> getAll(Integer id) {
        QueryWrapper<Friends> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("user_id",id);
        return friendsDao.selectList(queryWrapper);
    }
}

